﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace HYRMEOpening
{
	public partial class DlgDelByTime : System.Windows.Forms.Form
	{
		public DateTime StartTime { get; set; }

		public DateTime EndTime { get; set; }

		public DlgDelByTime()
		{
			this.InitializeComponent();
		}

		private void btnCancel_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		public static DlgDelByTime GetInstance()
		{
			if (DlgDelByTime.dac == null || DlgDelByTime.dac.IsDisposed)
			{
				DlgDelByTime.dac = new DlgDelByTime();
			}
			return DlgDelByTime.dac;
		}

		private void btnOK_Click(object sender, EventArgs e)
		{
			this.StartTime = this.dateTimePicker1.Value;
			this.EndTime = this.dateTimePicker2.Value;
		}

		private void DlgSearchByTime_Load(object sender, EventArgs e)
		{
		}

		private static DlgDelByTime dac;
	}
}
